package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 常见问题管理对象 faqs
 *
 * @author ruoyi
 * @date 2024-10-30
 */
public class Faqs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** ID */
    @Excel(name = "ID")
    private String numbering;

    /** 问题名称 */
    @Excel(name = "问题名称")
    private String question;

    /** 问题分类 */
    @Excel(name = "问题分类")
    private String classification;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishdate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNumbering(String numbering)
    {
        this.numbering = numbering;
    }

    public String getNumbering()
    {
        return numbering;
    }
    public void setQuestion(String question)
    {
        this.question = question;
    }

    public String getQuestion()
    {
        return question;
    }
    public void setClassification(String classification)
    {
        this.classification = classification;
    }

    public String getClassification()
    {
        return classification;
    }
    public void setPublishdate(Date publishdate)
    {
        this.publishdate = publishdate;
    }

    public Date getPublishdate()
    {
        return publishdate;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer()
    {
        return answer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("numbering", getNumbering())
            .append("question", getQuestion())
            .append("classification", getClassification())
            .append("publishdate", getPublishdate())
            .append("status", getStatus())
            .append("answer", getAnswer())
            .toString();
    }
}
